<template>
	<view class="pad-30">
		<view class="text-center font-32">{{info.title}}</view>
		<view class="text-right u-info mar-top-30 font-26">{{info.read_time}}</view>
		<view class="msg mar-top-30 font-28">{{info.message}}</view>
	</view>
</template>

<script setup>
	import {
		ref,
		reactive
	} from 'vue';

	// 接口引入
	import {
		messageInfo
	} from '/config/api.js';

	import {
		onLoad
	} from '@dcloudio/uni-app'

	let info = ref('');
	const getDataInfo = () => {
		messageInfo({
			id: infoId.value
		}).then(res => {
			info.value = res.data;
		})
	}

	// 详情id
	const infoId = ref('');
	onLoad((param) => {
		infoId.value = param.id;
		getDataInfo()
	})
</script>

<style scoped>

</style>